﻿@page "/StaticRenderMode"

<div class="card">
    <div class="card-header">
        静态呈现模式 (StaticRenderMode)
    </div>
    <div class="card-body">
        <button class="btn btn-primary" @onclick="UpdateMessage">点击</button>
        <p>
            @message
        </p>
    </div>
    <div class="card-footer">
        OSDescription:@RuntimeInformation.OSDescription
    </div>
</div>

@code {
    private string message = "没有点击";
    private int clickCount = 0;

    private void UpdateMessage()
    {
        message = $"已经点击 {++clickCount} 次";
    }
}
